package com.example.nebulaspringboot.service;

import com.example.nebulaspringboot.entity.Role;
import com.example.nebulaspringboot.error.BusinessException;

import java.util.List;

public interface RoleService {

    Role selectById(Integer id) throws BusinessException;

    List<Role> selectRoleList(String name);

    void insertSelective(Role role) throws BusinessException;

    void updateRoleById(Role role) throws BusinessException;

    void deleteById(Integer id) throws BusinessException;

    Role checkName(String name);
}
